package com.dinzeer.slashblade_useful_addon.item;

import com.dinzeer.slashblade_useful_addon.config.SoulCrystalConfig;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class SoulCrystal extends Item {
    public SoulCrystal(Properties properties) {
        super(properties.rarity(Rarity.EPIC));
    }

    @Override
    public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> list, TooltipFlag flag) {
        list.add(Component.translatable("tooltip.slashblade_useful_addon.soul_crystal").withStyle(ChatFormatting.GOLD));
            list.add(Component.translatable("tooltip.slashblade_useful_addon.soul_crystal_1", SoulCrystalConfig.SoulCrystalKillCount.get()).withStyle(ChatFormatting.GOLD));
            list.add(Component.translatable("tooltip.slashblade_useful_addon.soul_crystal_2",SoulCrystalConfig.SoulCrystalProudSoul.get()).withStyle(ChatFormatting.GOLD));
            list.add(Component.translatable("tooltip.slashblade_useful_addon.soul_crystal_3",SoulCrystalConfig.SoulCrystalRefine.get()).withStyle(ChatFormatting.GOLD));
            list.add(Component.translatable("tooltip.slashblade_useful_addon.soul_crystal_4",1).withStyle(ChatFormatting.GOLD));
    }

}
